package com.accp.controller;


import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import com.accp.entity.TzCategory;
import com.accp.service.ITzCategoryService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;

/**
 * <p>
 * 产品类目 前端控制器
 * </p>
 *
 * @author 辉
 * @since 2019-12-26
 */
@RestController
@RequestMapping("/accp/tzCategory")
public class TzCategoryController {

	@Autowired
	ITzCategoryService itzCategoryService;
	
	@RequestMapping("/getAllCategory")
	public List<TzCategory> getAllCategory(){
		return itzCategoryService.list(new QueryWrapper<TzCategory>());
	}
}

